<?php
include 'checkLogin.php';

@$id = $_REQUEST['pk'];
@$value = $_REQUEST['value'];
@$name = $_REQUEST['name'];

include 'db/li.php';

@$flog = dbUpdate("update type set $name=:value where id=:id",array('value'=>$value,'id'=>$id));

if(!$flog){
	header('HTTP/1.1 409');
	die;
}

echo json_encode(array('status'=>true));